<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
<aside class="main-sidebar" th:fragment="sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel">
            <div class="pull-left image">
                <img  class="img-circle" >
            </div>
            <div class="pull-left info">
                <!-- Status -->
                <a href="#"><span sec:authentication="principal.username"></span><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">主菜单</li>
            <!-- Optionally, you can add icons to the links -->
            <li class="treeview" id="user-branch">
                <a href="#"><i class="fa fa-user"></i> <span>用户管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a th:href="@{/user-list}"><i class="fa fa-list-alt"></i>用户列表</a></li>
                    <li><a th:href="@{/user-add-page}"><i class="fa fa-plus"></i>添加用户</a></li>
                </ul>
            </li>
            <li class="treeview" id="question-branch">
                <a href="#"><i class="fa fa-cubes"></i> <span>试题管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a th:href="@{/question-list}"><i class="fa fa-list-alt"></i>试题库</a></li>
                    <li><a th:href="@{/question-review}"><i class="fa fa-plus"></i>试题审核</a></li>
                </ul>
            </li>
            <li class="treeview" id="exam-branch">
                <a href="#"><i class="fa fa-reorder"></i> <span>试卷管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a th:href="@{/exam-list}"><i class="fa fa-list-alt"></i>试卷库</a></li>
                    <li><a th:href="@{/exam-review-page}"><i class="fa fa-list-alt"></i>试卷审核</a></li>
                 </ul>
            </li>
            <li class="treeview" id="section-branch">
                <a href="#"><i class="fa fa-map "></i> <span>章节管理</span>
                    <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li><a th:href="@{/section-list}"><i class="fa fa-list-alt"></i>章节列表</a></li>
                    <li><a th:href="@{/section-add-page}"><i class="fa fa-plus"></i>添加章节</a></li>
                </ul>
            </li>
        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>
</html>